%%%-------------------------------------------------------------------
%%% @author
%%% @copyright (C) 2013, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 28. Okt 2013 18:07
%%%-------------------------------------------------------------------
-module(starter).

%% API
-import(werkzeug, [get_config_value/2, logging/2, timeMilliSecond/0, to_String/1]).
-import(mst, [start/1]).
-export([start_gen/1]).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% loop
%
%Knoten erzeugen
%%
start_gen(Count) when Count > 0 ->
  NodeName = list_to_atom((lists:concat(["node", Count - 1]))),
  spawn(fun() -> mst:start(NodeName) end),
  start_gen(Count - 1);
start_gen(_) -> "Alle Knoten erzeugt".

